home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
E
/
ExerciseAwayYourCalories.cpt
/
EAYC!
/
background_2775.txt
< prev
next >
Wrap
Text File
|
1989-03-02
|
10KB
|
468 lines
-- background: 2775 from stack: in
-- bmap block id: 3121
-- flags: 0000
-- background id: 0
-- name:
-- part 1 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=0 top=15 right=49 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
play "Harpsichord"tempo 800"Cq E G Cq E G Cq E G Cq E G Cq E G"
end mouseUp
-- part 2 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=100 top=81 right=337 bottom=246
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 4 (field)
-- low flags: 00
-- high flags: 4002
-- rect: left=248 top=81 right=337 bottom=278
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: calories
-- part 6 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=87 top=81 right=337 bottom=99
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 256
-- line height: 12
-- part name: select
----- HyperTalk script -----
on mouseup
global calories
set lockscreen to true
put empty into field "select"
set locktext of field "select" to false
click at the clickloc
type "•"
set locktext of field "select" to true
set lockscreen to false
repeat with x=1 to number of lines in field select
if line x of field select="•" then
put line x of field "calories" into calories
end if
end repeat
repeat with x=4 to 26
put round((calories/(the short name of field x))*600)*0.1 into field x
end repeat
end mouseup
-- part 7 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=462 top=306 right=336 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 21700 / 21700
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Quit
----- HyperTalk script -----
on mouseUp
answer "Quit to where?" with "Home" or "Finder" or "Cancel"
if it="Home" then go home
if it="Finder" then domenu "Quit HyperCard"
end mouseUp
-- part 8 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=310 top=120 right=134 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 228
-- part 9 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=364 top=120 right=134 bottom=391
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 396
-- part 10 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=337 top=153 right=167 bottom=364
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 486
-- part 11 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=416 top=120 right=134 bottom=443
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 798
-- part 12 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=390 top=153 right=167 bottom=417
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 348
-- part 13 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=471 top=120 right=134 bottom=498
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 252
-- part 14 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=444 top=153 right=167 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 444
-- part 15 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=310 top=188 right=202 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 381
-- part 16 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=364 top=188 right=202 bottom=391
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 792
-- part 17 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=417 top=188 right=202 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 450
-- part 18 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=473 top=188 right=202 bottom=500
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 582
-- part 19 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=336 top=221 right=235 bottom=363
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 264
-- part 20 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=391 top=221 right=235 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 102
-- part 21 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=445 top=221 right=235 bottom=472
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 204
-- part 22 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=309 top=254 right=268 bottom=336
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 564
-- part 23 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=419 top=254 right=268 bottom=446
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 396
-- part 24 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=363 top=254 right=268 bottom=390
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 1212
-- part 25 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=472 top=254 right=268 bottom=499
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 864
-- part 26 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=336 top=286 right=300 bottom=363
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 276
-- part 27 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=391 top=286 right=300 bottom=418
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 174
-- part 28 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=445 top=286 right=300 bottom=472
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 270
-- part 29 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=310 top=318 right=332 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 540
-- part 30 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=363 top=318 right=332 bottom=390
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: 180
-- part 31 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=424 top=306 right=336 bottom=461
-- title width / last selected line: 0
-- icon id / first selected line: 19678 / 19678
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go to first card
end mouseUp
-- part 32 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=10 top=81 right=337 bottom=88
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
visual effect wipe right
go next
end mouseUp